// Licensed to Elasticsearch B.V under one or more agreements.
// Elasticsearch B.V licenses this file to you under the Apache 2.0 License.
// See the LICENSE file in the project root for more information.
//
// ███╗   ██╗ ██████╗ ████████╗██╗ ██████╗███████╗
// ████╗  ██║██╔═══██╗╚══██╔══╝██║██╔════╝██╔════╝
// ██╔██╗ ██║██║   ██║   ██║   ██║██║     █████╗
// ██║╚██╗██║██║   ██║   ██║   ██║██║     ██╔══╝
// ██║ ╚████║╚██████╔╝   ██║   ██║╚██████╗███████╗
// ╚═╝  ╚═══╝ ╚═════╝    ╚═╝   ╚═╝ ╚═════╝╚══════╝
// ------------------------------------------------
//
// This file is automatically generated.
// Please do not edit these files manually.
//
// ------------------------------------------------

#nullable restore

using Elastic.Clients.Elasticsearch.Fluent;
using Elastic.Clients.Elasticsearch.Serialization;
using System;
using System.Collections.Generic;
using System.Linq.Expressions;
using System.Text.Json;
using System.Text.Json.Serialization;

namespace Elastic.Clients.Elasticsearch.LicenseManagement;

public sealed partial class LicenseInformation
{
	[JsonInclude, JsonPropertyName("expiry_date")]
	public DateTimeOffset? ExpiryDate { get; init; }
	[JsonInclude, JsonPropertyName("expiry_date_in_millis")]
	public long? ExpiryDateInMillis { get; init; }
	[JsonInclude, JsonPropertyName("issue_date")]
	public DateTimeOffset IssueDate { get; init; }
	[JsonInclude, JsonPropertyName("issue_date_in_millis")]
	public long IssueDateInMillis { get; init; }
	[JsonInclude, JsonPropertyName("issued_to")]
	public string IssuedTo { get; init; }
	[JsonInclude, JsonPropertyName("issuer")]
	public string Issuer { get; init; }
	[JsonInclude, JsonPropertyName("max_nodes")]
	public long? MaxNodes { get; init; }
	[JsonInclude, JsonPropertyName("max_resource_units")]
	public int? MaxResourceUnits { get; init; }
	[JsonInclude, JsonPropertyName("start_date_in_millis")]
	public long StartDateInMillis { get; init; }
	[JsonInclude, JsonPropertyName("status")]
	public Elastic.Clients.Elasticsearch.LicenseManagement.LicenseStatus Status { get; init; }
	[JsonInclude, JsonPropertyName("type")]
	public Elastic.Clients.Elasticsearch.LicenseManagement.LicenseType Type { get; init; }
	[JsonInclude, JsonPropertyName("uid")]
	public string Uid { get; init; }
}